import { Component } from '@angular/core';
import {FormsModule} from '@angular/forms';
import {NzButtonComponent} from 'ng-zorro-antd/button';
import {NzInputDirective} from 'ng-zorro-antd/input';
import {NzSpaceComponent, NzSpaceItemDirective} from 'ng-zorro-antd/space';
import {NzTooltipDirective} from 'ng-zorro-antd/tooltip';
import {CloudService} from '../services/cloud.service';

@Component({
  selector: 'app-gateway',
  standalone: true,
  imports: [
    FormsModule,
    NzButtonComponent,
    NzInputDirective,
    NzSpaceComponent,
    NzTooltipDirective,
    NzSpaceItemDirective
  ],
  templateUrl: './gateway.component.html',
  styleUrl: './gateway.component.css'
})
export class GatewayComponent {

  constructor(private cloudService: CloudService ) {}

  gateway_lb_loading = false;
  gateway_http_loading = false;

  gateway_lb(){
    this.gateway_lb_loading = true;
    this.cloudService.gateway_lb().subscribe(res =>{
        console.log("res：", res)
        this.gateway_lb_loading = false;
    })
  }
  gateway_http(){
    this.gateway_http_loading = true;
    this.cloudService.gateway_http().subscribe(res =>{
      console.log(res)
      this.gateway_http_loading = false;
    })
  }

}
